// pages/main/me/interview/detail/detail.js
let interviewId = "159262457454905";

Page({
  data: {
    info: ""
  },

  onLoad: function (options) {
    interviewId=JSON.parse(options.param).id;
  },

  onShow: function () {
    let that = this;
    getApp().$http.getInterviewDetail(interviewId).then(res => {
      that.setData({
        info: res
      });
    });
  },

  openMap: function () {
    let that=this;
    wx.openLocation({
      latitude: that.data.info.interviewAddressLat,
      longitude: that.data.info.interviewAddressLng,
      scale: 18,
      address:that.data.info.interviewAddress
    })
  }


})